/**
 * 
 */
package com.aaron.client;

import com.google.gwt.core.client.GWT;
import com.google.gwt.user.client.rpc.RemoteService;
import com.google.gwt.user.client.rpc.ServiceDefTarget;

/**
 * @author aaron
 *
 */
public interface WorkspaceService extends RemoteService {

	public static final String SERVICE_URI = "/VivCode/workspace";

	public static class Util {

		public static WorkspaceServiceAsync getInstance() {

			WorkspaceServiceAsync instance = (WorkspaceServiceAsync) GWT
					.create(WorkspaceService.class);
			ServiceDefTarget target = (ServiceDefTarget) instance;
			target.setServiceEntryPoint(SERVICE_URI);
			return instance;
		}
	}
	public Workspace getWorkspace(String key)throws Exception;
}
